<template>
  <div class="block">
    <h3>注册用户时间线</h3>
    <el-timeline>
  <el-timeline-item v-for="user in userdata" :key="user.id" :timestamp="user.usertime" placement="top">
    <p>{{ user.username }} 提交于 {{ user.usertime }}</p>
  </el-timeline-item>
</el-timeline>
  </div>
</template>

<script>
import roleApi from "@/api/androiduser";
export default {
  name: "timeline",
  data() {
    return {
      userdata: [],
      searchModel: {
          pageNo: 1,
          pageSize: 10,
        },
    };
  },
  created() {
  this.getAndroidUserin();
},
methods:{
  getAndroidUserin() {
  roleApi.getAndroidUser(this.searchModel).then((Response) => {
    this.userdata = Response.data.rows;
    this.total = Response.data.total;
  });
}
}
};
</script>

<style>
</style>